// chidren属性
import React from 'react';
import { Link } from 'react-router-dom'
const Test = () => <button>按钮</button>
class App extends React.Component{
    render(){
        return(
            <Child>
                <div>chidren</div>
                <Test />
            </Child>
        )
    }
}

const Child = (props) => {
    return (
        <div>
            我是: {props.children}
            <Link to="/about">关于</Link>
        </div>
    )
}

export default App;